package com.ssy.lingxi.sms.api.model;

//import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 发送短信实体类
 * @author jw.chen
 * @version 2.0.0
 * @date 2020/6/10
 */
//@Data
public class SmsVO implements Serializable {

    private static final long serialVersionUID = -349492385129171807L;
    /**
     * 发送短信的目标手机号，可填多个
     */
    @NotEmpty(message = "手机号码不能为空")
    private String[] phones;

    /**
     * 业务模块编号(对应枚举类型类：SmsTemplateEnum)
     */
    @NotEmpty(message = "业务模块编号不能为空")
    private String code;

    /**
     * 模版参数，从前往后对应的是模版的{1}、{2}等
     */
    @NotEmpty(message = "短信模板参数不能为空")
    private String [] templateParam;

    public String[] getPhones() {
        return phones;
    }

    public void setPhones(String[] phones) {
        this.phones = phones;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String[] getTemplateParam() {
        return templateParam;
    }

    public void setTemplateParam(String[] templateParam) {
        this.templateParam = templateParam;
    }
}
